<?php

namespace IDock\Insurance\HBIC\Response;

use IDock\Http\Response;
use IDock\Printer\UploadFilePrinter;
use IDock\Printer\ValidateCarCodePrinter;

class ValidateCarResponse extends AllHBICResponse
{

    public function resolve(): Response
    {
        $body = $this->getBody();
        $data = json_decode($body,true);
        $this->setBody($data);
        return $this;
    }

    public function printerInit(): Response
    {
        $this->printer = new ValidateCarCodePrinter();

        $this->printer->code = '--';

        return $this;
    }
}
